home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / Development / qstat25b / Makefile < prev    next >
Makefile  |  2002-11-18  |  3KB  |  117 lines

  1.  
  2. CFLAGS =
  3.  
  4. # Uncomment if you have gcc
  5. # CC = gcc
  6.  
  7. # NOTE: if you get errors when linking qstat (missing symbols or
  8. # libraries), then switch the LIBS macro being used.
  9.  
  10. SRC = qstat.c config.c hcache.c template.c
  11. O = qstat.o config.o hcache.o template.o
  12. OBJ = qstat.obj config.obj hcache.obj template.obj
  13.  
  14. NO_LIBS =
  15. SOLARIS_LIBS = -lsocket -lnsl
  16. WINDOWS_LIBS = wsock32.lib
  17. OS2_LIBS = so32dll.lib tcp32dll.lib
  18. EMX_LIBS = -lsocket
  19.  
  20. # Irix 5.3, Linux, FreeBSD, many other Unixes
  21. LIBS = $(NO_LIBS)
  22.  
  23. # Solaris 2
  24. # LIBS = $(SOLARIS_LIBS)
  25.  
  26. # Windows 95/NT
  27. # LIBS = $(WINDOWS_LIBS)
  28.  
  29. # OS/2
  30. # LIBS = $(OS2_LIBS)
  31.  
  32. # The first line is for Unix.  Switch the comment character for Windows.
  33. # (there should be no need to compile on Windows, but in case you care ...)
  34. all: qstat
  35. #all: qstat.exe
  36.  
  37. qstat: $(SRC)
  38.     $(CC) $(CFLAGS) -o qstat $(SRC) $(LIBS)
  39.  
  40. solaris: $(SRC)
  41.     $(CC) $(CFLAGS) -o qstat $(SRC) $(SOLARIS_LIBS)
  42.  
  43. aix sgi freebsd macosx osx openbsd irix linux: $(SRC)
  44.     $(CC) $(CFLAGS) -o qstat $(SRC) $(NO_LIBS)
  45.  
  46. hp hpux: $(SRC)
  47.     $(CC) $(CFLAGS) -Ae -o qstat $(SRC) $(NO_LIBS)
  48.  
  49. windows: $(SRC)
  50.     $(CC) $(CFLAGS) /ML $(SRC) /Feqstat.exe wsock32.lib
  51.  
  52. windows_debug: $(SRC)
  53.     rm -f *.pdb
  54.     $(CC) $(CFLAGS) /Zi /ML $(SRC) /Feqstat.exe wsock32.lib /link /fixed:no /incremental:no /pdbtype:con
  55.  
  56. os2: $(SRC)
  57.     $(CC) /Q /W0 /C+ $(SRC)
  58.     ilink /PM:VIO $(OBJ) /out:qstat.exe $(OS2_LIBS)
  59.  
  60. os2emx: $(SRC)
  61.     $(CC) $(CFLAGS) -o qstat.exe $(SRC) $(EMX_LIBS)
  62.  
  63. clean:
  64.     rm -f qstat core qstat.exe $(O) $(OBJ)
  65.  
  66. VERSION = 25b
  67. WVERSION = 25b
  68. CP_FILES = CHANGES.txt LICENSE.txt qstatdoc.html \
  69.     Makefile GNUmakefile qstat.cfg qstat.c qstat.h \
  70.     config.c config.h hcache.c template.c \
  71.     COMPILE.txt contrib.cfg template
  72.  
  73. tar: always
  74.     rm -rf tar qstat$(VERSION)
  75.     rm -f qstat$(VERSION).tar qstat$(VERSION).tar.Z qstat$(VERSION).tar.gz
  76.     mkdir qstat$(VERSION)
  77.     -cp -rp $(CP_FILES) qstat$(VERSION)
  78.     cd qstat$(VERSION) ; chmod u+w qstat.cfg Makefile GNUmakefile ; cd ..
  79.     tar cvf qstat$(VERSION).tar qstat$(VERSION)
  80.     gzip qstat$(VERSION).tar
  81.  
  82. zip: always
  83.     rm -rf zip qsta$(WVERSION) qstat$(WVERSION)
  84.     rm -f qstat$(WVERSION).zip qstat$(WVERSION).zip
  85.     mkdir qstat$(WVERSION)
  86.     -cp -rp $(CP_FILES) win32 qstat$(WVERSION)
  87.     mv qstat$(WVERSION)/qstatdoc.html qstat$(WVERSION)/qstatdoc.htm
  88.     mv qstat$(WVERSION)/template/brocTh.html \
  89.         qstat$(WVERSION)/template/brocTh.htm
  90.     mv qstat$(WVERSION)/template/brocTp.html \
  91.         qstat$(WVERSION)/template/brocTp.htm
  92.     mv qstat$(WVERSION)/template/brocTs.html \
  93.         qstat$(WVERSION)/template/brocTs.htm
  94.     mv qstat$(WVERSION)/template/brocTt.html \
  95.         qstat$(WVERSION)/template/brocTt.htm
  96.     mv qstat$(WVERSION)/template/unrealTh.html \
  97.         qstat$(WVERSION)/template/unrealTh.htm
  98.     mv qstat$(WVERSION)/template/unrealTp.html \
  99.         qstat$(WVERSION)/template/unrealTp.htm
  100.     mv qstat$(WVERSION)/template/unrealTs.html \
  101.         qstat$(WVERSION)/template/unrealTs.htm
  102.     mv qstat$(WVERSION)/template/unrealTt.html \
  103.         qstat$(WVERSION)/template/unrealTt.htm
  104.     mv qstat$(WVERSION)/template/tribes2th.html \
  105.         qstat$(WVERSION)/template/tribes2th.htm
  106.     mv qstat$(WVERSION)/template/tribes2tp.html \
  107.         qstat$(WVERSION)/template/tribes2tp.htm
  108.     mv qstat$(WVERSION)/template/tribes2ts.html \
  109.         qstat$(WVERSION)/template/tribes2ts.htm
  110.     mv qstat$(WVERSION)/template/tribes2tt.html \
  111.         qstat$(WVERSION)/template/tribes2tt.htm
  112.     cd qstat$(WVERSION) ; crtocrlf * ; cd ..
  113.     cd qstat$(WVERSION)/template ; crtocrlf * ; cd ../..
  114.     zip -r qstat$(WVERSION).zip qstat$(WVERSION)
  115.  
  116. always:
  117.